//
//  CommenData.swift
//  微博(swift)
//
//  Created by 汤米 on 16/4/17.
//  Copyright © 2016年 汤米. All rights reserved.
//

import UIKit
import SnapKit
import SDWebImage
import SVProgressHUD

//表情按钮被点击发送童子的名字
let emoticonButtonWasClickedNotification = "emoticonButtonWasClickedNotification"

//表情键盘删除按钮发送通知的名字
let deleteButtonWasClickedNotification = "deleteButtonWasClickedNotification"

let SwitchViewController = "switchViewController"

let UserName = "muqi70595723@163.com"
let PassWord = "aaa333"

let AppKey = "2070707421"
let AppSecret = "81a3b20f78bd7bee934a0f33d80c3a2e"
let Redirect_Uri = "http://www.baidu.com"

let kScreenSize = UIScreen.mainScreen().bounds
let kScreenW: CGFloat = UIScreen.mainScreen().bounds.size.width
let kScreenH: CGFloat = UIScreen.mainScreen().bounds.size.height

let themeColor = UIColor.orangeColor()

func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor {
    
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}

func randumColor() -> UIColor {
    
    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256

    return RGB(red: CGFloat(red), green: CGFloat(green), blue: CGFloat(blue))
}
